import axiosInstance from "../plugins/axios";
import { ElMessage } from 'element-plus';
export const getTenantDeptDTO= async ()=> {
    const res = await axiosInstance.get("/departs/combined");
    if (res.data.code === 1) {
        return res.data.data; // 返回数据
    } else {
        ElMessage.error(res.data.message || "获取部门信息失败");
        throw new Error(res.data.message || "获取部门信息失败");
    }
}